﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Appointment Status Repository Interface
    /// </summary>
    public interface IAppointmentStatusRepository
    {
        /// <summary>
        /// Get All Appointment Status
        /// </summary>
        /// <returns></returns>
        IQueryable<AppointmentStatus> FindAllAppointmentStatus();

        /// <summary>
        /// Get Appointment Status By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<AppointmentStatus> FindAppointmentStatusByName(string strQuery);

        /// <summary>
        /// Get Appointment Status By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        AppointmentStatus GetAppointmentStatusById(int id);

        /// <summary>
        /// Add Appointment Status in the Database
        /// </summary>
        /// <param name="appointmentStatus"></param>
        void Add(AppointmentStatus appointmentStatus);

        /// <summary>
        /// Delete Appointment Status from the Database
        /// </summary>
        /// <param name="appointmentStatus"></param>
        void Delete(AppointmentStatus appointmentStatus);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}